<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
    <%--常量--%>
    <%@ include file="/common/constHead.jsp"%>
    <%--jQuery--%>
    <%@ include file="/common/jqueryHead.jsp"%>
    <%--jo--%>
    <%@ include file="/common/joHead.jsp"%>
    <%--bootstrap和字体--%>
    <%@ include file="/common/bootstrapHead.jsp"%>
    <%--layer--%>
    <%@ include file="/common/layerHead.jsp"%>
    <%--公共--%>
    <%@ include file="/common/commonHead.jsp"%>
    <%--日期选择--%>
    <%@ include file="/common/dateHead.jsp"%>
    <title>水源表单</title>
        <script type="text/javascript">
            $(function(){
                var jParams = {
                    "PKName" : "id",//主键属性名
                    "saveAfter" : "toEdit",
                    "addUrl" : "travel/source/insert.action",//新增
                    "deleteUrl" : "travel/source/delete.action",//删除
                    "updateUrl" : "travel/source/update.action",//修改
                    "formDataUrl" : "travel/source/getSource.action"	//查询
                };
                joForm.initFormPage(jParams);//初始化
            });
            //初始化表单值前处理
            joForm.initFormValueBefore = function(oJson){
            };
        </script>
</head>
<body class="">
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-lg-12 col-md-12 col-sm-12">
            <%--按钮栏--%>
            <div class="form-group button-bar">
                <button type="button" isShow="joForm.isAdd" class="btn btn-sm btn-outline btn-primary" onclick="joForm.save()">
                    <i class="fa fa-plus-circle" aria-hidden="true"></i>&nbsp;新增
                </button>
                <button type="button" isShow="!joForm.isAdd" class="btn btn-sm btn-outline btn-primary" onclick="joForm.update()">
                    <i class="fa fa-pencil-square" aria-hidden="true"></i>&nbsp;修改
                </button>
                <button type="button" isShow="!joForm.isAdd" class="btn btn-sm btn-outline btn-danger" onclick="joForm.del()">
                    <i class="fa fa-trash" aria-hidden="true"></i>&nbsp;删除
                </button>
            </div>
            <%--按钮栏--%>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12 col-lg-12 col-md-12 col-sm-12">
            <form id="pageForm" name="pageForm" action="" method="post">
                <table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
                    <tr>
                        <td width="15%" class="active must" align="">单体名称</td>
                        <td class="tnt">
                            <input type="text"  name="name" class="form-control input-sm" ErrEmpty/>
                            <input type="hidden"  name="id" class="form-control input-sm"  />
                        </td>
                        <td width="15%" class="active must" align="">主　　类</td>
                        <td class="tnt">
                            <select ErrEmpty name="typeOne" id="typeOne" onchange="choiceOne()" class="joSelect form-control input-sm" firstItem='{"id":"","name":""}' dataurl="travel/sourceType/getSourceTypeList.action?stype=1" keyfield="id" valuefield="name"></select>
                        </td>
                    </tr>
                    <tr>
                        <td class="active must" align="">亚　　类</td>
                        <td class="tnt">
                            <select ErrEmpty name="typeTwo" id="typeTwo" onchange="choiceTwo()" class="joSelect form-control input-sm" firstItem='{"id":"","name":""}' dataurl="travel/sourceType/getSourceTypeList.action?stype=1" keyfield="id" valuefield="name"></select>
                        </td>
                        <td width="15%" class="active must" align="">基本类型</td>
                        <td class="tnt">
                            <select ErrEmpty name="typeThree" id="typeThree" class="joSelect form-control input-sm" data='' firstItem='{"id":"","name":""}' dataurl="" keyfield="id" valuefield="name"></select>
                        </td>
                    </tr>

                    <tr>
                        <td class="active" align="">主管单位</td>
                        <td class="tnt" colspan="3">
                            <input type="text"  name="org" class="form-control input-sm" />
                        </td>
                    </tr>
                    <tr>
                        <td class="active" align="">行政位置</td>
                        <td class="tnt" colspan="3">
                            <input type="text"  name="addr" class="form-control input-sm" />
                        </td>
                    </tr>
                    <tr>
                        <td class="active" align="">地理位置</td>
                        <td class="tnt">
                            <div class="input-group">
                                <span class="input-group-addon">东经</span>
                                <input type="text" name="longitude" class="form-control input-sm"/>
                                <%--<span class="input-group-addon">°</span>
                                <input type="text" class="form-control">
                                <span class="input-group-addon">′</span>
                                <input type="text" class="form-control">
                                <span class="input-group-addon">″</span>--%>
                                <span class="input-group-addon" style="border-right: none;border-left: none;">北纬</span>
                                <input type="text" name="latitude" class="form-control input-sm"/>
                                <%--<span class="input-group-addon">°</span>
                                <input type="text" class="form-control">
                                <span class="input-group-addon">′</span>
                                <input type="text" class="form-control">
                                <span class="input-group-addon">″</span>--%>
                            </div>
                        </td>
                        <td class="active" align="">邮政编码</td>
                        <td class="tnt">
                            <input type="text"  name="postalCode" class="form-control input-sm" />
                        </td>
                    </tr>
                    <tr>
                        <td class="active" align="">性质与特征</td>
                        <td class="tnt" colspan="3">
                            <textarea  name="natureAndFeature" class="form-control input-sm" rows="4" placeholder="（单体性质、形态、体量、结构、组成成分的外在表现和内在因素，以及单体生成过程、演化历史、人事影响等主要环境因素）"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="active" align="">旅游区域及进出条件</td>
                        <td class="tnt" colspan="3">
                            <textarea  name="areaAndCondition" class="form-control input-sm" rows="4" placeholder="（单体所在地区的具体部位、进出交通、与周边旅游集散地和主要旅游区之间关系）"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="active" align="">保护与开发现状</td>
                        <td class="tnt" colspan="3">
                            <textarea  name="protectSituation" class="form-control input-sm" rows="4" placeholder="（单体保存现状、保护措施、开发情况）"></textarea>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>



<script src="<%=URL_STATIC%>static/plugin/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
    jo.formatUI();//格式化jo组件
</script>
</body>
</html>
